package com.sun.hunk.menu;

import com.sun.hunk.hibernate.domain.Link;

/**
 *
 * @author sunil
 */
public class MenuItem {
    
    private Long id;
    private String program;
    private String desc;
    private boolean selected;

    public MenuItem(Long itemId, String program, String desc) {
        this.id = itemId;
        this.program = program;
        this.desc = desc;
    }
    public MenuItem(Link item) {
        this.id = item.getId();
        this.program = item.getProgram();
        this.desc = item.getDesc();
    }

    public MenuItem(String program, String desc) {
        this(null, program, desc);
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getProgram() {
        return program;
    }

    public void setProgram(String program) {
        this.program = program;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

}
